package org.abacus.client.ui.control.widgets;

import org.abacus.client.ui.access.AbstractAccessData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Widget;


public class LLabel extends AbstractAccessData {
	final Label control;

	public LLabel(Widget parent, int style) {
		this((Composite) parent, style);
	}

	public LLabel(Composite parent, int style) {
		super();
		this.control = new Label(parent, style);
	}

	public Control getControl() {
		return control;
	}

	@Override
	public String getValue() {
		return control.getText();
	}

	@Override
	public void setValue(String value) {
		if (null != value)
			control.setText(value);
	}
}
